﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExtraClub.Domain.Entities {
    public partial class ClubCategory {
        public class ClubCategoriesSelect {
            public List<string> Options = new List<string>();
            public List<string> Values = new List<string>();
        }
        public static ClubCategoriesSelect GetClubCategories() {
            ClubCategoriesSelect select = new ClubCategoriesSelect();
            ClubCategoryCollection clubCategories = new ClubCategoryCollection().Load();
            clubCategories.GetList().ForEach(delegate(ClubCategory item) {
                select.Options.Add(item.Name);
                select.Values.Add(item.Id.ToString());
            });
            return select;
        }
    }
}
